/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src;

import java.awt.Graphics;
import javax.swing.JLabel;

/**
 *
 * @author Mauricio
 */
class JFlecha extends JLabel {
    
    JFigura inicio;
    JFigura fin;
    
    public JFlecha(JFigura inicio, JFigura fin){
        this.inicio = inicio;
        this.fin = fin;
    }
    
    @Override
    public void paint(Graphics g){
        g.drawLine(inicio.getX()+50, inicio.getY()+50, inicio.getX()+50, inicio.getY()+75);
        g.drawLine(inicio.getX()+50, inicio.getY()+75, fin.getX()+50, inicio.getY()+75);
        g.drawLine(fin.getX()+50, inicio.getY()+75, fin.getX()+50, fin.getY());
        //g.drawLine(inicio.getX()+50, inicio.getY()+50, fin.getX()+50, fin.getY());
    }
}
